home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / zmdm.zoo / proto.h < prev    next >
C/C++ Source or Header  |  1991-04-27  |  5KB  |  179 lines

  1. #if defined(__STDC__) || defined(__cplusplus)
  2. # define P_(s) s
  3. #else
  4. # define P_(s) ()
  5. #endif
  6.  
  7.  
  8. /* common.c */
  9. int mode P_((int n));
  10. int sendbrk P_((void));
  11. int Txoff P_((void));
  12. int Txon P_((void));
  13. int read_modem P_((char *buf, int count));
  14. void stalarm P_((unsigned int n));
  15. void write_modem P_((char *buf, int len));
  16. void flushinput P_((void));
  17. int isbinary P_((char *name));
  18. int ustrcmp P_((char *s1, char *s2));
  19. int pathensure P_((char *name));
  20. int pathrest P_((char *name, char *prev));
  21. int makesubtree P_((char *name, char *prev));
  22. int existd P_((char *name));
  23. int existf P_((char *name));
  24. int stsystem P_((char *cmd));
  25. int stsleep P_((int n));
  26. int initz P_((void));
  27. int aexit P_((int n));
  28. int buserr P_((void));
  29. int addrerr P_((void));
  30. int bttyout P_((int c));
  31. void sendline P_((int c));
  32. void flush_modem P_((void));
  33. char *substr P_((char *s, char *t));
  34. int canit P_((void));
  35. void SetIoBuf P_((void));
  36. void ResetIoBuf P_((void));
  37. int readline P_((int timeout));
  38. int report P_((int sct));
  39. int lreport P_((long sct));
  40. int _initargs P_((void));
  41. int wr_modem P_((char *s));
  42. unsigned char *dalloc P_((void));
  43. int getbaud P_((void));
  44.  
  45. /* expandar.c */
  46. int expandargs P_((int (*routine )(), int argc, char **argv));
  47.  
  48. /* fileio.c */
  49. int stfopen P_((char *name, char *mode));
  50. int stfclose P_((int handl));
  51. int stputc P_((unsigned int c, int handl));
  52. int stgetc P_((int handl));
  53. int stflush P_((int handl));
  54. int stfseek P_((int handl, long disp, int mode));
  55. long stread P_((int handl, unsigned char *b, long bytes));
  56.  
  57. /* main.c */
  58. void setFlow P_((void));
  59. void setBaud P_((void));
  60. void help P_((void));
  61. int finish P_((void));
  62.  
  63. /* phone.c */
  64. void phone P_((void));
  65. int writedir P_((void));
  66.  
  67. /* rz.c */
  68. int rusage P_((void));
  69. int wcreceive P_((int argc, char **argp));
  70. int wcrxpn P_((char *rpn));
  71. int wcrx P_((void));
  72. int wcgetsec P_((char *rxbuf, int maxtime));
  73. int procheader P_((char *name));
  74. int putsec P_((unsigned char *buf, int n));
  75. void chkinvok P_((char *s));
  76. int tryz P_((void));
  77. int rzfiles P_((void));
  78. int rzfile P_((void));
  79. void zmputs P_((char *s));
  80. int closeit P_((long rxbytes));
  81. void ackbibi P_((void));
  82. int sys2 P_((char *s));
  83. void exec2 P_((char *s));
  84. void touch P_((char *name, unsigned int *timep));
  85.  
  86. /* sz.c */
  87. void onintr P_((void));
  88. int wcsend P_((int argc, char *argp[]));
  89. int wcs P_((char *oname));
  90. int wctxpn P_((char *name));
  91. int getnak P_((void));
  92. int wctx P_((long flen));
  93. int wcputsec P_((char *buf, int sectnum, int cseclen));
  94. int filbuf P_((unsigned char *buf, int count));
  95. int zfilbuf P_((void));
  96. int fooseek P_((int fptr, long pos, int whence));
  97. int readock P_((int timeout));
  98. int susage P_((void));
  99. int getzrxinit P_((void));
  100. int sendzsinit P_((void));
  101. int zsendfile P_((char *buf, int blen, long szbytes));
  102. int zsendfdata P_((void));
  103. int getinsync P_((int flag));
  104. void saybibi P_((void));
  105. int zsendcmd P_((char *buf, int blen));
  106. void schkinvok P_((char *s));
  107.  
  108. /* transfer.c */
  109. void transfer P_((void));
  110. int find_command P_((char *s));
  111. int expnd_args P_((char *s, int expand_wild));
  112. int add_argv P_((char *s));
  113. int handl_wild P_((char *s));
  114. char *mkpathname P_((char *spec, char *file));
  115. void free_args P_((void));
  116. int rm P_((int argc, char **argv));
  117. int yesno P_((char *p1, char *p2));
  118. int cp P_((int argc, char **argv));
  119. int cpy P_((char *src, char *dest));
  120. int ls P_((int argc, char **argv));
  121. void lis P_((char *wild));
  122. int cd P_((int argc, char **argv));
  123. int pwd P_((void));
  124. int df P_((int argc, char **argv));
  125. int rd P_((int argc, char **argv));
  126. char *myalloc P_((unsigned int size));
  127. int hhelp P_((void));
  128. char *alltolower P_((char *s));
  129. char *basename P_((char *s));
  130. int doszf P_((int argc, char **argv));
  131. void Cconraux P_((char *l));
  132. int get_a_c P_((void));
  133.  
  134. /* tyme.c */
  135. unsigned long tm_to_time P_((unsigned int base_year, unsigned int year, unsigned int month, unsigned int day, unsigned int hours, unsigned int mins, unsigned int secs));
  136. unsigned long st2unix P_((unsigned int time, unsigned int date));
  137. void unix2st P_((unsigned long Unix, unsigned int *time, unsigned int *date));
  138.  
  139. /* util.c */
  140. void rd_time P_((void));
  141. void my_screen P_((void));
  142. void his_screen P_((void));
  143. void hit_key P_((void));
  144. long filesize P_((char *name));
  145. void Bconws P_((char *s));
  146. int *aaddress P_((void));
  147. void hi50 P_((void));
  148. void hi25 P_((void));
  149. int *aaddress P_((void));
  150.  
  151. /* zm.c */
  152. void zsbhdr P_((int len, int type, char *hdr));
  153. void zsbh32 P_((int len, char *hdr, int type, int flavour));
  154. void zshhdr P_((int len, int type, char *hdr));
  155. void zsdata P_((char *buf, int length, int frameend));
  156. void zsda32 P_((char *buf, int length, int frameend));
  157. int zrdata P_((char *buf, int length));
  158. int zrdat32 P_((char *buf, int length));
  159. void garbitch P_((void));
  160. int zgethdr P_((char *hdr, int eflag));
  161. int zrbhdr P_((char *hdr));
  162. int zrbhd32 P_((char *hdr));
  163. int zrhhdr P_((char *hdr));
  164. void zputhex P_((int c));
  165. void zsendline P_((int c));
  166. int zgethex P_((void));
  167. int zgeth1 P_((void));
  168. int zdlread P_((void));
  169. int noxrd7 P_((void));
  170. void stohdr P_((long p));
  171. long rclhdr P_((char *hdr));
  172. void zsdar32 P_((char *buf, int length, int frameend));
  173. int zrdatr32 P_((char *buf, int length));
  174.  
  175. void bibis P_((int n));
  176. void bibi P_((int n));
  177.  
  178. #undef P_
  179.